using System;
using Microsoft.SPOT;

namespace Netduino.Sensor.Unit
{
    /// <summary>
    /// A unit that is defined at construction time.
    /// </summary>
    class SpecifiedUnit:IUnit
    {
        /// <summary>
        /// The name for this unit.
        /// </summary>
        private string _name;

        /// <summary>
        /// The symbol for this unit.
        /// </summary>
        private string _symbol;

        /// <summary>
        /// Creates a new unit instance.
        /// </summary>
        /// <param name="name"></param>
        /// <param name="symbol"></param>
        public SpecifiedUnit(String name, String symbol)
        {
            _name = name;
            _symbol = symbol;
        }

        /// <summary>
        /// Gets the name.
        /// </summary>
        public string Name
        {
            get { return _name; }
        }

        /// <summary>
        /// Gets the symbol.
        /// </summary>
        public string Symbol
        {
            get { return _symbol; }
        }
    }
}
